package com.gcit.seniorWish.web.core.mybatis.datascope;

import java.util.List;

/**
* 数据范围
* 泛型T为范围字段的类型
* @author gaozhichang
* @date 2018-02-06 下午 4:13
*/
public class DataScope<T> {

    /**
     * 限制范围的字段名称
     */
    private String scopeName = "deptId";

    /**
     * 具体的数据范围
     */
    private List<T> deptIds;

    public DataScope() {
    }

    public DataScope(List<T> deptIds) {
        this.deptIds = deptIds;
    }

    public DataScope(String scopeName, List<T> deptIds) {
        this.scopeName = scopeName;
        this.deptIds = deptIds;
    }

    public List<T> getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(List<T> deptIds) {
        this.deptIds = deptIds;
    }

    public String getScopeName() {
        return scopeName;
    }

    public void setScopeName(String scopeName) {
        this.scopeName = scopeName;
    }
}
